import request from "@/utils/request";

// 获取轮播图列表
export const getSideShowList = (data) => {
	return request.get('/api/v1/admin/swiperList', data)
}

// 设置轮播图
export const setSideShow = (data) => {
	return request.post("/api/v1/admin/setSwiper", data)
}

// 删除轮播图
export const delSideShow = (data) => {
	return request.delete(`/api/v1/admin/delSwiper/${data}`)
}

// 获取商品展示
export const getGoodsProduct = () => {
	return request.get('/api/v1/admin/goodsProduct')
}

// 修改商品展示数据
export const setGoodsProduct = (data) => {
	return request.post('/api/v1/admin/goodsProduct/setGoodsProduct', data)
}

// 删除商品展示
export const delGoodsProduct = (id) => {
	return request.delete(`/api/v1/admin/goodsProduct/del/${id}`)
}